package com.ecut.property_project.service.room;

import com.ecut.property_project.mapper.room.RoomAssessMapper;
import com.ecut.property_project.model.room.RoomAssess;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoomAssessService{

    @Resource
    private RoomAssessMapper roomAssessMapper;

    
    public int deleteByPrimaryKey(Integer assessId) {
        return roomAssessMapper.deleteByPrimaryKey(assessId);
    }

    
    public int insert(RoomAssess record) {
        return roomAssessMapper.insert(record);
    }

    
    public int insertSelective(RoomAssess record) {
        return roomAssessMapper.insertSelective(record);
    }

    public List<RoomAssess> selectAll(){ return roomAssessMapper.selectAll(); }

    public List<RoomAssess> selectByPage(Integer page, Integer pageSize){return roomAssessMapper.selectByPage(page,pageSize);}

    public RoomAssess selectByPrimaryKey(Integer assessId) {
        return roomAssessMapper.selectByPrimaryKey(assessId);
    }
    public List<RoomAssess> selectByHeadId(String headId){
        return roomAssessMapper.selectByHeadId(headId);
    }

    
    public int updateByPrimaryKeySelective(RoomAssess record) {
        return roomAssessMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(RoomAssess record) {
        return roomAssessMapper.updateByPrimaryKey(record);
    }

}
